home *** CD-ROM | disk | FTP | other *** search
- /* Dissolve
- 100
- */
-
- call addlib("rexxmathlib.library", 5, -30, 0)
-
- options results
-
- parse ARG Port Opt1 Opt2 Opt3 s0 t0 s1 t1 b
-
- ADDRESS value Port
-
- pp_GetWidth
- w=result
- pp_GetHeight
- h=result
- pp_GetDepth
- D=result
-
- pp_GetCurrentBrush
- CB=result
-
- pp_FindEmptyBrush
- Brush=result
- if Brush=-1 then DO
- pp_Warn "can't*find*empty|Brush."
- EXIT
- END
-
- pp_EffectOff
- pp_SetBrush Brush
- pp_GotoFrame s1
- pp_PicttoSpare
- pp_GotoFrame s0
- pp_Pickbrush 0 0 W H
-
- step=(s1-s0)
- Step_f=255/Step
-
- DO i=s0 to s1
- IF t1=1 then DO
- pp_GotoFrame (s1+i-s0)
- pp_PicttoSpare
- END
-
- pp_GotoFrame i
-
- IF t0=0 then DO
- pp_plot W/2 H/2
- END
-
- f=Step_f*(i-s0)
- IF Opt1=0 then DO
- pp_Dissolve f 255
- END
- ELSE DO
- pp_Dissolve f f
- END
- pp_Refresh
- END
-
- pp_Gotoframe s0
- pp_FreeBrush
- pp_SetBrush CB
-
- EXIT
-